﻿using Microsoft.Xna.Framework;

namespace Firefly.Framework.Windows.Forms
{
    public class Label : Control
    {
        public Label()
        {
        }

        #region IDrawable Members

        public override void Draw(GameTime gameTime)
        {
            if (Visible)
            {
                WindowsService.Instance.Theme.Fonts[Font].Draw(Text, 
                    new Vector2((float)DrawRectangle.X, 
                        (float)DrawRectangle.Y), 
                        FontSize, 
                        FontColor);
                DrawChildren(gameTime);
            }
        }

        #endregion
    }
}
